package org.dioib.practice.common;

import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

public interface IBaseService<T> extends IService<T>{
    Result<T> create(T entity);
    Result<T> delete(T entity);
    Result<T> delete(Serializable id);
    Result<T> update(T entity);
    Result<T> read(T entity);
    Result<T> read(Serializable id);
    //TODO 分页接口
}
